package com.yunxin.core.customer.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 关系配置表
 * @TableName customer_ship_allocation
 */
@TableName(value ="customer_ship_allocation")
@Data
public class CustomerShipAllocation implements Serializable {

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 业务员id
     */
    private Integer salesmanId;

    /**
     * 话务员id
     */
    private Integer telephoneId;
    //团队id
    private Integer teamId;
    /**
     * 删除状态 0.正常 1删除
     */
    @TableLogic(value = "0",delval = "1")
    private Integer isDel;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date editTime;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 修改人
     */
    private String editor;

    public static final Integer DEL = 1;
    public static final Integer NO_DEL = 0;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}